package zjh_20230404;

public class Demo02 {
    public static void main(String[] args) {
        //通过实现Runnable接口，实现创建线程
        //创建线程任务对象
        MyRunnable mr = new MyRunnable();
        //创建线程对象
        Thread thread = new Thread(mr,"线程A");
        thread.start();
        thread.run();


//        Thread.State state = thread.getState();
//        System.out.println(state);

//        thread.setContextClassLoader();
    }

}
